<?php

/**
 *  @FileComment            [后台权限管理主表视图模型]
 *  @ProjectName             项目名称：JDshop
 *  @FileName                   文件名称：RoleNodeListViewModel.class.php
 *  @Author                       yuerengui <596580041@qq.com>
 *  @Date                          2014-10-26 16:18:30
 *  *
 */
class RoleNodeListViewModel extends ViewModel {

        public $table = 'role';
        public $view = array(
            'role' => array('_type' => 'INNER'),
            'access' => array('_type' => 'INNER', '_on' => '__role__.rid=access.rid'),
            'node' => array('_type' => 'INNER', '_on' => '__node__.nid=access.nid')
        );

        public function get_data() {
                return $this->all();
        }

}
